<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>后台管理首页-CAS官网</title>
		<link rel="stylesheet" href="css/iconfont.css" />
		<link rel="shortcut icon" href="img/favicon.ico" />
		<link rel="stylesheet" href="css/admin.css" />
		<script type="text/javascript" src="js/jquery-3.2.0.min.js"></script>
		<script type="text/javascript" src="js/admin.js"></script>
	</head>

	<body>
		<div class="g-left">
			<ul class="m-nav">
				<C:forEach items="${menulist }" var="menu">
					<C:if test="${menu.permission<=role && menu.permission!=0 }">
						<C:if test="${menu.pid == 0}">
							<li>
								<span><i class="icon iconfont">&#xe612;</i>${menu.name }<i class="icon iconfont">&#xe601;</i></span>
								<ul>
									<C:forEach items="${menulist }" var="menu1">
										<C:if test="${menu.id == menu1.pid && menu1.permission<=role && menu.permission!=0}">
											<li>
												<a href="${menu1.url }">${menu1.name }</a>
											</li>
										</C:if>
									</C:forEach>
								</ul>
							</li>
						</C:if>
					</C:if>
				</C:forEach>
			</ul>
		</div>
		<div class="g-right">
			<div class="g-status">
				<i class="icon iconfont m-switch">&#xe606;</i>
				<div>
					<i class="icon iconfont m-switch">&#xe602;</i>
					<a href="index.jsp">前台</a>
					<i class="icon iconfont m-switch">&#xe6a0;</i>
					<span>管理员:</span>
					<a href="">张三</a>
					<i class="icon iconfont m-switch">&#xe60e;</i>
					<a href="">安全退出</a>
				</div>
			</div>
			<div class="g-mn">

			</div>
		</div>

	</body>

</html>